package com.doxiaopu.students.user.entity;

import com.doxiaopu.students.component.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description= "好友关系")
public class PersonRelation extends BaseEntity {

    private static final long serialVersionUID = -21967975542449442L;
    private Integer id;
    @ApiModelProperty(value = "自己的id")
    private String sendPersonId;
    @ApiModelProperty(value = "好友的id")
    private String acceptPersonId;
    @ApiModelProperty(value = "好友关系id")
    private String messagePersonId;

    public String getSendPersonId() {
        return sendPersonId;
    }

    public void setSendPersonId(String sendPersonId) {
        this.sendPersonId = sendPersonId;
    }

    public String getAcceptPersonId() {
        return acceptPersonId;
    }

    public void setAcceptPersonId(String acceptPersonId) {
        this.acceptPersonId = acceptPersonId;
    }

    public String getMessagePersonId() {
        return messagePersonId;
    }

    public void setMessagePersonId(String messagePersonId) {
        this.messagePersonId = messagePersonId;
    }

    @Override
    public String toString() {
        return "PersonRelation{" +
                "sendPersonId='" + sendPersonId + '\'' +
                ", acceptPersonId='" + acceptPersonId + '\'' +
                ", messagePersonId=" + messagePersonId +
                '}';
    }
}
